package edu.xust.dao.impl;

import edu.xust.config.Repository;
import edu.xust.config.Resource;
import edu.xust.dao.PostServiceDao;
import edu.xust.entity.PostServiceBean;
import edu.xust.mapper.PostServiceMapper;

import java.util.List;

@Repository("postServiceDao")
public class PostServiceDaoImpl implements PostServiceDao {

    @Resource
    PostServiceMapper postServiceMapper;

    @Override
    public PostServiceBean getPostServiceBeanByPID(Integer pid) {
        return new PostServiceBean(1000, "张三", "堵车");
    }

    @Override
    public List<PostServiceBean> getPostAllServiceBean() {

        return postServiceMapper.getAllPostService();
    }
}
